//
//  CarViolationSearchRequest.m
//  EasyToo
//
//  Created by linshengqin on 13-9-9.
//交通违章查询
/*
public static String j002001  = "{  "CTSReqHeader":{"Channel":"02","TranCode":"002001","MesgRefID":"201303010131284634","OrigSender":"999000,2A7937F8A94CEDA47A37F200B8C8FA7B","Userid":"easytootest","ResultCode":"B253C4AAEA30706F0459698FBE897F91","Comment":"","TxAccount":"121.31.157.19","TxAmt":"","Contacter":"18680583034","TxPage":"1","TxRecordNum":"10"},"CTSReqBody": {"InstituteID":"999000","InstituteTime":"20110620031635","ProcessCode":"AMERCE_EASYTOO_QUERY_1","VehicleNo":"GDDA2698","VehicleColor":"2","RackNo":"019624","EnginNo":"1789","TerminalID":""}}";
result:
 AmerceRecords:违法顺序号#文书号#文书类型#违法行为#违章地点#违法城市#本金#滞纳金#服务费#违法时间#状态|违法顺序号#文书号#文书类型#违法行为#违章地点#违法城市#本金#滞纳金#服务费#状态,
 PostFee:1000
 */
//
//

#import "CarViolationSearchRequest.h"

@implementation CarViolationSearchRequest

-(id) initWithVehicleNo:(NSString*)vehicleNo
           VehicleColor:(NSString*)color
                 RackNo:(NSString*)rackNo
                EnginNo:(NSString*)enginNo
               Delegate:(id<ServerCommunicationDelegate>)delegate
{
    self = [super init];
    if (self) {
        self.requestName = @"CarViolationSearchRequest";
        self.vehicleNo = vehicleNo;
        self.colorType = color;
        self.rackNo = rackNo;
        self.enginNo = enginNo;
        self.delegate = delegate;
        
        [self.bodyJsonDict setObject:self.vehicleNo forKey:@"VehicleNo"];
        [self.bodyJsonDict setObject:self.colorType forKey:@"VehicleColor"];
        [self.bodyJsonDict setObject:self.rackNo forKey:@"RackNo"];
        [self.bodyJsonDict setObject:self.enginNo forKey:@"EnginNo"];
  //      [self.bodyJsonDict setObject:@"999000" forKey:@"InstituteID"];
 //       [self.bodyJsonDict setObject:@"AMERCE_EASYTOO_QUERY_1" forKey:@"ProcessCode"];

        [self.headerJsonDict setObject:@"002001" forKey:@"TranCode"];
        [self.headerJsonDict setObject:@"10" forKey:@"TxRecordNum"];
//        [self.headerJsonDict setObject:@"easytootest" forKey:@"Userid"];

        [self buildJsonRequest];
    }
    return self;
}

@end
